如何修改jupyter notebook和jupyter lab的默认工作路径

您所在的位置:网站首页 jupyter lab 多用户 如何修改jupyter notebook和jupyter lab的默认工作路径

如何修改jupyter notebook和jupyter lab的默认工作路径

2022-05-20 15:35| 来源: 网络整理| 查看: 265

步骤为: C盘->用户->Administrator->找到.jupyter文件夹->找到jupyter_notebook_config.py文件->用notepad++打开->ctrl+F查找# c.NotebookApp.notebook_dir = ’ '->用c.NotebookApp.notebook_dir替换# c.NotebookApp.notebook_dir->将引号里面的内容替换为你想要的默认工作路径->保存->重新打开jupyter notebook和jupyter lab

如果要是找不到jupyter_notebook_config.py文件,可以参考我的这篇博客https://blog.csdn.net/weixin_42416683/article/details/112384711里面有操作步骤教你如何找到jupyter_notebook_config.py文件

描述

注意:上述方法适用于你有jupyter notebook和jupyter lab这两个或者你只有jupyter notebook 如何修改电脑上只有jupyter lab时的默认工作路径

C盘->用户->Administrator->找到.jupyter文件夹->找到jupyter_notebook_config.py文件->用notepad++打开->ctrl+F查找# c.ServerApp.notebook_dir = ’ '->用c.ServerApp.notebook_dir替换# c.ServerApp.notebook_dir->将引号里面的内容替换为你想要的默认工作路径->保存->重新打开jupyter lab就好了

注:关于jupyter notebook和jupyter lab这两个的所有设置均在jupyter_notebook_config.py文件中进行,所以你可以自己摸索着进行设置


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3